package o;

import android.annotation.TargetApi;
import android.media.MediaCodec.CryptoInfo;
import android.media.MediaCodec.CryptoInfo.Pattern;

public final class acv {
    public int ʻ;
    public int ʼ;
    private final CryptoInfo ʽ;
    public byte[] ˊ;
    public int[] ˋ;
    public int ˎ;
    public int[] ˏ;
    public byte[] ॱ;
    private final b ॱॱ;
    public int ᐝ;

    @TargetApi(24)
    static final class b {
        private final CryptoInfo ˋ;
        private final Pattern ॱ;

        private b(CryptoInfo cryptoInfo) {
            this.ˋ = cryptoInfo;
            this.ॱ = new Pattern(0, 0);
        }

        private void ॱ(int i, int i2) {
            this.ॱ.set(i, i2);
            this.ˋ.setPattern(this.ॱ);
        }
    }

    public acv() {
        CryptoInfo ˏ;
        b bVar = null;
        if (anr.ˋ >= 16) {
            ˏ = ˏ();
        } else {
            ˏ = null;
        }
        this.ʽ = ˏ;
        if (anr.ˋ >= 24) {
            bVar = new b(this.ʽ);
        }
        this.ॱॱ = bVar;
    }

    public void ॱ(int i, int[] iArr, int[] iArr2, byte[] bArr, byte[] bArr2, int i2, int i3, int i4) {
        this.ʼ = i;
        this.ˏ = iArr;
        this.ˋ = iArr2;
        this.ॱ = bArr;
        this.ˊ = bArr2;
        this.ˎ = i2;
        this.ᐝ = i3;
        this.ʻ = i4;
        if (anr.ˋ >= 16) {
            ॱ();
        }
    }

    @TargetApi(16)
    public CryptoInfo ˊ() {
        return this.ʽ;
    }

    @TargetApi(16)
    private CryptoInfo ˏ() {
        return new CryptoInfo();
    }

    @TargetApi(16)
    private void ॱ() {
        this.ʽ.numSubSamples = this.ʼ;
        this.ʽ.numBytesOfClearData = this.ˏ;
        this.ʽ.numBytesOfEncryptedData = this.ˋ;
        this.ʽ.key = this.ॱ;
        this.ʽ.iv = this.ˊ;
        this.ʽ.mode = this.ˎ;
        if (anr.ˋ >= 24) {
            this.ॱॱ.ॱ(this.ᐝ, this.ʻ);
        }
    }
}
